package com.controller;

import com.controller.response.DataResponse;
import com.entity.BuildingInfo;
import com.service.BuildingInfoService;
import com.service.DataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/data")
public class DataController {
    
    @Autowired
    private DataService dataService;

    @GetMapping
    public DataResponse getData() {
        return dataService.getData();
    }

}